package mesweb.mesweb.service.impl.procedure;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import mesweb.mesweb.entity.Procedure.MesProcedureTechnology;
import mesweb.mesweb.mapper.procedure.MesProcedureTechnologyMapper;
import mesweb.mesweb.service.procedure.IMesProcedureTechnologyService;
import mesweb.mesweb.vo.procecdure.MesProcedureTechnologyVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 工序工艺关系
 * @Author: jeecg-boot
 * @Date:   2021-06-25
 * @Version: V1.0
 */
@Service
public class MesProcedureTechnologyServiceImpl extends ServiceImpl<MesProcedureTechnologyMapper, MesProcedureTechnology> implements IMesProcedureTechnologyService {

    @Autowired
    private MesProcedureTechnologyMapper mesProcedureTechnologyMapper;
    @Override
    public IPage<MesProcedureTechnologyVo> getProcedureTechnology(Page page, @Param("ew") QueryWrapper queryWrapper) {
        return mesProcedureTechnologyMapper.getProcedureTechnology(page,queryWrapper);
    }
    @Override
    public List<MesProcedureTechnologyVo> getProcedureTechnology(@Param("ew") QueryWrapper queryWrapper) {
        return mesProcedureTechnologyMapper.getProcedureTechnology(queryWrapper);
    }
}
